﻿using Microsoft.SharePoint;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharePointListSecurity
{
    public class FeatureIds
    {
        private static Guid sharepointListSecurityFeature = new Guid("5a94d851-9b0a-4bb4-b867-2ff7afb57543");
        public static bool IsFeatureActivated()
        {
            try
            {
                SPFeature spListSecurityFeauture = SPContext.Current.Site.Features[sharepointListSecurityFeature];
                if (spListSecurityFeauture != null)
                {
                    return true;
                }
                return false;
            }
            catch (Exception)
            {
                return false;
            }
        }

    }
}
